﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Drawing;

namespace Demo
{
    public class InputValidateCodeEventArgs : EventArgs, IDisposable
    {
        public string ValidateCode
        {
            get;
            set;
        }

        public Image ValidateCodeImage
        {
            get;
            private set;
        }

        public InputValidateCodeEventArgs(Image validateCodeImage, string validateCode)
        {
            this.ValidateCodeImage = validateCodeImage;
            this.ValidateCode = validateCode;
        }

        public void Dispose()
        {
            this.Dispose(true);
            GC.SuppressFinalize(this);
        }

        protected virtual void Dispose(bool disposing)
        {
            if (this.ValidateCodeImage == null)
            {
                return;
            }
            this.ValidateCodeImage.Dispose();
            this.ValidateCodeImage = null;
        }
    }

}
